From: Giles Cope Date: Tue, 20 Jun 2017 22:14:15 +0000 (+0100) Subject: Prep for asser_eq failure msg format change. X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~9^2~2^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=225aed08fb2a1f37e80eba57c3f4e0a01d799b9b;p=cargo.git Prep for asser_eq failure msg format change. --- diff --git a/tests/test.rs b/tests/test.rs index c05593d14..6e6faed3f 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -215,10 +215,11 @@ test test_hello ... FAILED failures: ---- test_hello stdout ---- -thread 'test_hello' panicked at 'assertion failed: \ - `(left == right)` (left: \ - `\"hello\"`, right: `\"nope\"`)', src[/]foo.rs:12 -") +thread 'test_hello' panicked at 'assertion failed:[..]") + .with_stdout_contains("[..]`(left == right)`[..]") + .with_stdout_contains("[..]left: `\"hello\"`,[..]") + .with_stdout_contains("[..]right: `\"nope\"`[..]") + .with_stdout_contains("[..]src[/]foo.rs:12[..]") .with_stdout_contains("\ failures: test_hello